package com.sixth.stock.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sixth.core.entity.Medicines;
import com.sixth.core.vo.R;
import com.sixth.stock.vo.DespensingVo;
import com.sixth.stock.vo.MedicinesForInventoryVo;
import com.sixth.stock.vo.MedicinesVo;

import java.util.List;

/**
* @author Administrator
* @description 针对表【stock_medicines(药品信息表)】的数据库操作Service
* @createDate 2024-08-14 20:33:04
*/
public interface MedicinesService extends IService<Medicines> {

    R<IPage<Medicines>> selectByPage(MedicinesVo medicinesVo);

    R<IPage<Medicines>> selectByPage2(MedicinesForInventoryVo medicinesVo);

    R<String> batchDelete(Long[] ids);

    R<IPage<Medicines>> selectInit();

    List<Medicines>  listAvailable();

    R updateStock(Long id, Integer stock);

    R<String> deleteById(Long id);
    R despensing(List<DespensingVo> despensingVo);
}
